package com.temi.iot.jwt.annotion;



import com.temi.iot.jwt.enums.PermissionEnums;

import java.lang.annotation.*;

/**
 * 权限注解 用于检查权限 规定访问权限
 */
@Inherited
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD})
public @interface Permission {
    PermissionEnums[] value() default {PermissionEnums.DOCTOR, PermissionEnums.MANAGER};
}
